js.underas.controller.CheckBox = new Class({
	"Extends":js.underas.controller.Controller
	,"checkedValue":"S"
	,"unCheckedValue":"N"   
	,"initialize":function(p_label,p_innerLabel){
		this.parent('div','<label class="control-label" for="inputIcon_'+this.uid+'">'+p_label+'</label>'+
			'<div class="input-group  input-group-sm">'+
        '<span class="input-group-addon">'+
          '<input class="inputtt cposi_1 cposis" id="inputIcon_'+this.uid+'" type="checkbox">'+
        '</span>'+
        '<input type="text" disabled="true" class="form-control cposi_2 cposis" value="'+p_innerLabel+'"/>'+
      '</div>'); 
		this.getEle().addClass("col-xs-12 col-sm-12 form-group CheckBox");
	}
	,"setCheckedValue":function(p_vl){		
		this.checkedValue=p_vl;
	}
	,"setUnCheckedValue":function(p_vl){		
		this.unCheckedValue=p_vl;
	}
	,"isValid":function(){
		return true;
	}
	,"setValue":function(p_vl){		
		var checked = false;	
		if(p_vl==this.checkedValue){
			checked = true;		
		}
		this.getEle("input.inputtt").set("checked",checked);
		
	}
	,"getValue":function(){		
		return this.getEle("input.inputtt").get("checked")?this.checkedValue:this.unCheckedValue;		
	}
});
